package com.glomozda.machinerepairdao.domain.client;

@SuppressWarnings({"PMD.CommentRequired", "PMD.LawOfDemeter"})
public class Client {
	private Integer clientID;
	private String  clientName;
	private Integer clientUserID;
	
	public Client(){
	}

	public Client(final String clientName, final Integer clientUserID) {
		this.clientName = clientName;
		this.clientUserID = clientUserID;
	} 
	
	public Integer getClientID() {
		return clientID;
	}
	public void setClientID(final Integer clientID) {
		this.clientID = clientID;
	}
	public String getClientName() {
		return clientName;
	}
	public void setClientName(final String clientName) {
		this.clientName = clientName;
	}
	public Integer getClientUserID() {
		return clientUserID;
	}
	public void setClientUserID(final Integer clientUserID) {
		this.clientUserID = clientUserID;
	}
	
	@Override
	public int hashCode() {
		int hash = 3;
		hash = 13 * hash + (this.clientName != null ? this.clientName.hashCode() : 0);		
		return hash;
	}

	@Override
	public boolean equals(final Object obj) {
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final Client other = (Client) obj;
		if ((this.clientName == null) ? other.clientName != null : !this.clientName.equals(other.clientName)) {
			return false;
		}
		return true;
	}    

	@Override
	public String toString() {
		return "client{" + "clientID=" + clientID + ", clientName=" + clientName + ", clientUserID=" + clientUserID + '}'+"\n";
	}
}
